// This file is part of OpenTSDB.
// Copyright (C) 2017 TeleDB Development Group.
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 2.1 of the License, or (at your
// option) any later version.  This program is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
// General Public License for more details.  You should have received a copy
// of the GNU Lesser General Public License along with this program.  If not,
// see <http://www.gnu.org/licenses/>.
package net.opentsdb.tsd.http;

import java.util.Date;

public class TSysConnCertification {
    /**
     * token编号，主键
     */
    private Integer tokenId;

    /**
     * 角色，0为管理员，1为用户
     */
    private Integer role;

    /**
     * token串,每个用户最多可以拥有5个Token
     */
    private String token;

    /**
     * token名称
     */
    private String tokenName;

    /**
     * 备注
     */
    private String comment;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 生效截止时间
     */
    private Date validDeadlineTime;

    /**
     * 产品实例id
     */
    private String prodInstId;

    public String getProdInstId() {
        return prodInstId;
    }

    public void setProdInstId(String prodInstId) {
        this.prodInstId = prodInstId;
    }

    /**
     * 获取token编号，主键
     *
     * @return token_id - token编号，主键
     */
    public Integer getTokenId() {
        return tokenId;
    }

    /**
     * 设置token编号，主键
     *
     * @param tokenId
     *            token编号，主键
     */
    public void setTokenId(Integer tokenId) {
        this.tokenId = tokenId;
    }

    /**
     * 获取角色，0为管理员，1为用户
     *
     * @return role - 角色，0为管理员，1为用户
     */
    public Integer getRole() {
        return role;
    }

    /**
     * 设置角色，0为管理员，1为用户
     *
     * @param role
     *            角色，0为管理员，1为用户
     */
    public void setRole(Integer role) {
        this.role = role;
    }

    /**
     * 获取token串,每个用户最多可以拥有5个Token
     *
     * @return token - token串,每个用户最多可以拥有5个Token
     */
    public String getToken() {
        return token;
    }

    /**
     * 设置token串,每个用户最多可以拥有5个Token
     *
     * @param token
     *            token串,每个用户最多可以拥有5个Token
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime
     *            创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取生效截止时间
     *
     * @return valid_deadline_time - 生效截止时间
     */
    public Date getValidDeadlineTime() {
        return validDeadlineTime;
    }

    /**
     * 设置生效截止时间
     *
     * @param validDeadlineTime
     *            生效截止时间
     */
    public void setValidDeadlineTime(Date validDeadlineTime) {
        this.validDeadlineTime = validDeadlineTime;
    }

    public String getTokenName() {
        return tokenName;
    }

    public void setTokenName(String tokenName) {
        this.tokenName = tokenName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

}